/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Game;

import java.util.ArrayList;
import java.util.List;

/**
 * User entity for gameplay.
 * @author Rodge Uy
 */

public class User {

    private int userID;

    private List<Travel> history=null;

    //constructor, takes in userID as input
    public User(int userID){
        this.userID = userID;
        history= new ArrayList<Travel>();
    }

    //returns historical List of Travel objects
    public List<Travel> getList(){
        return history;
    }

    //places a Travel object onto the end of the List
    public boolean addTravel(Travel t){
        history.add(t);
        return true; //confimation that addition of Travel object was successful
    }

}
